<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/5/21 0021
  Time: 10:38
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!doctype html>
<html lang="en">

<head>
    <title>Tables</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <%@ include file="/common/include_css.jsp"%>
</head>

<body>
<!-- WRAPPER -->
<div id="wrapper">

    <!-- NAVBAR -->
    <%@ include file="/common/include_navbar.jsp"%>
    <!-- END NAVBAR -->


    <!-- LEFT SIDEBAR -->
    <%@ include file="/common/include_sidebar.jsp"%>
    <!-- END LEFT SIDEBAR -->


    <!-- MAIN -->
    <div class="main">
        <!-- MAIN CONTENT -->
        <div class="main-content">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-md-12">
                        <!-- BASIC TABLE -->
                        <div class="panel">
                            <div class="panel-heading">
                                <h3 class="panel-title">商品信息</h3>
                            </div>
                            <div class="panel-body">
                                <div style="width: 80%">
                                    <form class="form-horizontal" role="form" action="${pageContext.request.contextPath}/goods/add_goods" method="post">
                                        <div class="form-group">
                                            <label for="gname" class="col-sm-2 control-label">商品名称</label>
                                            <div class="col-sm-10">
                                                <input type="text" name="gname" class="form-control" id="gname" placeholder="请输入商品名称">
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label for="goodsInfo" class="col-sm-2 control-label">商品标题</label>
                                            <div class="col-sm-10">
                                                <input type="text" name="goodsInfo" class="form-control" id="goodsInfo" placeholder="请输入商品标题">
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label for="price" class="col-sm-2 control-label">商品价格</label>
                                            <div class="col-sm-10">
                                                <input type="text" name="price" class="form-control" id="price" placeholder="请输入商品价格">
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label for="num" class="col-sm-2 control-label">商品库存</label>
                                            <div class="col-sm-10">
                                                <input type="text" name="num" class="form-control" id="num" placeholder="请输入商品库存">
                                            </div>
                                        </div>


                                        <div class="form-group">
                                            <label for="goods_deltis" class="col-sm-2 control-label">商品描述</label>
                                            <div class="col-sm-10">
                                                <input type="text" name="goods_deltis" class="form-control" id="goods_deltis" placeholder="请输入商品描述">
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label for="goods_type" class="col-sm-2 control-label">商品分类</label>
                                            <div class="col-sm-10">
                                                <select name="goods_type" id="goods_type" class="form-control">
                                                   <c:forEach var="gtype" items="${gtlist}">
                                                    <option value="${gtype.id}">${gtype.type_name}</option>
                                                   </c:forEach>
                                                </select>
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label for="markup" class="col-sm-2 control-label">备注</label>
                                            <div class="col-sm-10">
                                                <input type="text" name="markup" class="form-control" id="markup" placeholder="请输入备注">
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <div class="col-sm-offset-2 col-sm-10">
                                                <button type="submit" class="btn btn-primary">保存</button>
                                            </div>
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>
                        <!-- END BASIC TABLE -->
                    </div>

                </div>
            </div>

        </div>
    </div>
    <!-- END MAIN CONTENT -->
</div>
<!-- END MAIN -->
<div class="clearfix"></div>
<footer>
    <div class="container-fluid">
        <p class="copyright">Copyright &copy; 2020.本项目归1802班同学所有，未经允许不得转载，违者必究 </p>
    </div>
</footer>
</div>
<!-- END WRAPPER -->
<!-- Javascript -->
<%@ include file="/common/include_javascript.jsp"%>
</body>

</html>
